<!-- 网站头部设计
主要包括：
1.登录注册
2.网站图标、搜索栏、购物车
3.导航栏
 -->
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <title>网站头部</title>
	<link rel="stylesheet" href="./Public/css/style.css">
	<link rel="stylesheet" href="./Public/css/swiper-3.3.1.min.css">
	<script type="text/javascript" src="./Public/js/jquery.min.js" charset="utf-8"></script>
	<?php include_once("common/init.php");?>
</head>
<body>
<div class="mm_ctr">
<!-- 顶部：登录 注册 个人中心接口 -->
<div id="top">
    <div class="top_left">
		欢迎使用青城闲置物品交易系统！
	</div>
    <div class="top_t2">
         <?php 
		 if($_SESSION["id"]){?>
			<a href="./user/index.php" target='_blank'>用户中心</a>&nbsp;&nbsp;<a href="login.php?type=logout">退出登录</a><?php 
		}else{?>
			<a href="login.php">用户登录</a>&nbsp;&nbsp;<a href="register.php">用户注册</a>
		<?php
		}
		?>
    </div>
</div>
<!-- 顶部结束 -->
<div id="main">
    <div class="head_ctr">
		<!-- 网站图标部分 -->
        <div class="logo">
			<a href="index.php"><img src="./Public/images/logo.png" ></a>
		</div>
		<!-- 搜索栏部分 -->
		<div class="input_ctr" style="">
            <form method="post" id="sbtn" action="goods.php">
				<input type="text" name="title" class="input_txt" placeholder="请输入关键词..." style="height: 30px; border-right:1px solid #e2e1e6;">
            </form>
            <div class="input_btn" onclick="$('#sbtn').submit();">
				<!-- &emsp; -->
				<i class="iconfont"><img src="./Public/images/search.png" style="vertical-align:middle;"></i>
			</div>
        </div>
		<!-- 购物车部分 -->
        <div class="ngwc_ctr">
            <div class="ngwc_ctr1" id="ngwc_ctr1">
				<i class="iconfont"><img src="./Public/images/cart.png"></i>
			</div>
            <div class="ngwc_txt" onclick="location.href='cart.php';">我的<br>
				<span>
					<div class="floatleft">购物车</div>
				</span>
			</div>
        </div>
    </div>
    <div class="nav_ctr">
		<!-- 导航栏部分 -->
        <div class="nav_cell1" id="t0">
			<a href="index.php">首页</a>
		</div>
		<div class="nav_cell">
			<a href="goodsr.php">热门商品</a>
		</div>
		<div class="nav_cell">
			<a href="goods.php">商品中心</a>
		</div>
		<div class="nav_cell">
			<a href="goodst.php">推荐商品</a>
		</div>
		<div class="nav_cell">
			<a href="news.php">站内公告</a>
		</div>
		<div class="nav_cell">
			<a href="about.php?id=1">关于我们</a>
		</div>
		<div class="nav_cell">
			<a href="about.php?id=2">联系我们</a>
		</div>
	</div>
</body>
</html>